<?php 
namespace app\lib\exception;

use think\exception\Handle;
use Exception;
use InvalidArgumentException;
use think\Db;

class ApiException extends Handle {

    public function render(Exception $e){ // 重写render方法
        $code = $e->getCode();
        $msg = $e->getMessage();
        return apiResult($code,$msg);
    }

}
